/* 基础色彩变量 */
:root {
    --primary: #e60012;
    --primary-hover: #b8000e;
    --bg: #f5f6fa;
    --card-bg: #fff;
    --border: #ececec;
    --text: #222;
    --text-light: #888;
    --nav-bg: #232323;
    --nav-text: #fff;
    --btn-black: #222;
    --btn-black-hover: #444;
    --radius: 18px;
    --shadow: 0 2px 16px rgba(0,0,0,0.07);
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'PingFang SC', 'Segoe UI', Arial, sans-serif;
    margin: 0;
}

/* 导航栏 */
.navbar {
    background-color:#242424 ;
    color: var(--nav-text);
    box-shadow: var(--shadow);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container,.menu-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 1340px;
    margin: 0 auto;
    height: 72px;
    padding: 0 32px;
}
.nav-background{
    background-color: #242424f5;
}
.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--nav-text);
}
.nav-logo i {
    background: #fff;
    color: var(--primary);
    border-radius: 50%;
    font-size: 2rem;
    margin-right: 8px;
    padding: 4px;
}
.nav-logo .company-name {
 font-size: 1.29rem;
}
.nav-logo .company-english-name{
  font-size: 1rem;
}
.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
}
.nav-menu a {
    color: var(--nav-text);
    text-decoration: none;
    font-size: 1rem;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: border 0.2s, color 0.2s;
}
.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}
.nav-toggle { display: none; }

/* 右侧按钮 */
.navbar .nav-container {
    position: relative;
}
.navbar .nav-container::after {
    content: '';
    display: block;
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 180px;
    background: transparent;
    pointer-events: none;
}

.navbar .nav-menu + div {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-login {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 8px 24px;
    font-size: 1rem;
    font-weight: 600;
    margin-left: 16px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-login:hover {
    background: var(--primary-hover);
}

/* 搜索框 */
.search-box {
    background: #3a3a3a;
    border-radius: 999px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    margin: 0 32px;
    height: 36px;
    width: 540px;
}
.search-box input {
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    font-size: 1rem;
    width: 100%;
    margin-left: 8px;
}
.search-box i {
    color: #aaa;
    font-size: 1.1rem;
}

/* 主体布局 */
main {
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding: 0 16px 40px 16px;
}

.flex-row {
    display: flex;
    gap: 32px;
}

.left-panel, .right-panel {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px 24px;
}
.left-panel {
    flex: 2;
}
.right-panel {
    flex: 1;
    min-width: 320px;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 卡片标题 */
.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text);
}

/* 分类标签 */
.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.tag {
    border: 1.5px solid var(--border);
    background: #fafbfc;
    color: var(--text-light);
    border-radius: 999px;
    padding: 8px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: border 0.2s, color 0.2s, background 0.2s;
}
.tag.selected, .tag:hover {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: #fff0f2;
}

/* 地区卡片 */
.region-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.region-card {
    border: 1.5px solid var(--border);
    background: #fff;
    border-radius: var(--radius);
    padding: 18px 32px;
    font-size: 1.1rem;
    color: var(--text);
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: none;
}
.region-card.selected, .region-card:hover {
    border: 1.5px solid var(--primary);
    background: #fff0f2;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(230,0,18,0.07);
}
.region-card .price {
    color: var(--primary);
    font-weight: 600;
    margin-left: 12px;
}

/* 右侧结算卡片 */
.right-panel .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.right-panel .price-old {
    color: #bbb;
    text-decoration: line-through;
    font-size: 1rem;
}
.right-panel .price-new {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
}

/* 数量选择器 */
.qty-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.qty-btn {
    background: #f2f2f2;
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s;
}
.qty-btn:hover {
    background: #e0e0e0;
}
.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    color: var(--text);
}

/* 结算按钮 */
.btn-buy {
    background: var(--btn-black);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px 0;
    font-size: 1.2rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.2s;
}
.btn-buy:hover {
    background: var(--btn-black-hover);
}

/* 促销标签 */
.promo {
    background: #fff0f2;
    color: var(--primary);
    border-radius: 8px;
    padding: 2px 10px;
    font-size: 0.95rem;
    margin-right: 6px;
}

/* 其它细节 */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-thumb {
    background: #eee;
    border-radius: 4px;
}

/* 优化Tabs标签页选中项样式 */
.tabs-navbar {
    background: rgba(36,36,36,0.96);
    border-bottom: 3px solid var(--primary);
    box-shadow: none;
    padding: 0;
}
.tabs-navbar .nav-container {
    height: 72px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.tabs-navbar .nav-logo {
    margin-right: 32px;
    font-size: 1.1rem;
}
.menu-box{
   height: 40px;
   display: flex;
   align-items:flex-end
}
.tabs-menu {
    display: flex;
    align-items: stretch;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    height: 34px;
}
.tab-item {
    position: relative;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    margin-right: 2px;
    transition: background 0.2s, color 0.2s;
    height: 100%;
    display: flex;
    align-items: stretch;
}
.tab-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    min-width: 80px;
    padding: 0 28px;
    font-size: 14px;
    color: #fff;
    background: transparent;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s, background 0.2s;
    box-sizing: border-box;
    white-space: nowrap;
}
.tab-item.active, .tab-item.active a {
    background: var(--primary) !important;
    color: #fff !important;
    border-radius: 12px 12px 0 0;
    height: 100%;
}
.tab-item.active a {
    box-shadow: none;
}
.tab-item.active::after, .tab-item.active::before {
    display: none !important;
}
.tab-item:not(.active) a {
    background: transparent;
    color: #fff;
}
.tab-item:not(.active) {
    background: transparent;
}
.tabs-navbar .nav-actions {
    margin-left: 32px;
}

.cart-float {
    height: 300px;
    margin-left: 16px;
    position: sticky;
    top: 116px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.13);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-size: 1rem;
}
.cart-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    background: #f7f7f7;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}
.cart-header i {
    color: var(--primary);
    font-size: 1.2rem;
}
.cart-list {
    max-height: 220px;
    overflow-y: auto;
    padding: 12px 20px;
    flex: 1;
}
.cart-empty {
    color: #bbb;
    text-align: center;
    padding: 32px 0;
}
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f3f3f3;
    gap: 8px;
}
.cart-item:last-child {
    border-bottom: none;
}
.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cart-item-title {
    font-weight: 500;
    color: #222;
    font-size: 1rem;
    margin-bottom: 2px;
}
.cart-item-meta {
    color: #888;
    font-size: 0.95rem;
}
.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 4px;
}
.cart-item-qty-btn {
    width: 22px;
    height: 22px;
    border: none;
    background: #f2f2f2;
    color: #222;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.cart-item-qty-btn:hover {
    background: #e0e0e0;
}
.cart-item-qty-num {
    width: 28px;
    text-align: center;
    font-size: 1rem;
    border: none;
    background: transparent;
}
.cart-item-price {
    color: var(--primary);
    font-weight: 600;
    min-width: 60px;
    text-align: right;
}
.cart-item-remove {
    color: #bbb;
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    margin-left: 8px;
    transition: color 0.2s;
}
.cart-item-remove:hover {
    color: var(--primary);
}
.cart-footer {
    background: #fafbfc;
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 600;
}
.cart-total-price {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
}
.cart-float .btn-buy {
    width: 100%;
    padding: 12px 0;
    font-size: 1.1rem;
    border-radius: 10px;
    margin: 0;
}
.webpage-warning{
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(246, 243, 235);
    color: #a75600;
    width: 100%;
}
.webpage-warning .main-alert-bar {
     width: 1340px;
    border-radius: 12px;
    padding: 13px 0px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(230,124,0,0.04);
    letter-spacing: 0.5px;
}
.main-alert-bar i {
    color: #e67c00;
    font-size: 1.2em;
    margin-right: 6px;
}
.introduction{
    width: 100%;
    height: 192px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(https://static-kk.kardz.cn/static/assets/AB_details_bg.80534d0770dced9ed32e.png) center center / cover no-repeat, linear-gradient(rgb(237, 237, 237) 0%, rgb(255, 255, 255) 100%);
}
.introduction .introduction-container{
    padding-top: 26px;
    margin: auto;
    width: 1340px;
    display: flex;
}
.introduction-photo img{
    width: 140px;
    height: 186px;
}
.introduction-title{
    margin-left: 20px;
}
.introduction-title .introduction-title-name{
    font-size: 24px;
    font-weight: bolder;
}
.introduction-title .introduction-box{
    margin-top: 66px;
    width: 638px;
    display: flex;
    justify-content: space-between;
}
.introduction-title .introduction-line{
    display: flex;
    align-items: center;
}
.introduction-title .introduction-line img{
    width: 32PX;
    height: 32px;
}
.main-top-tags {
    display: flex;
    gap: 18px;
    margin: 0 0 18px 0;
    justify-content: flex-start;
    align-items: center;
}
.main-top-tag {
    height: 40px;
    min-width: 80px;
    padding: 0 14px;
    text-align: center;
    display: flex;
    align-items: center;
    border-radius: 8px;
    border: 1px solid rgb(216, 216, 216);
    transition: 0.3s;
    line-height: 20px;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    background: #fff;
    color: #222;
    font-weight: 500;
    box-sizing: border-box;
}
.main-top-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff0f2;
}
.main,.footer{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 44px;
}
.main-box,.container,.footer-content{
    width: 1340px;
}
.main-box{
    display: flex;
}
.footer{
    background-color: black;
    color: #ffffffb3;
}
.footer-content,.footer-right{
    display: flex;
    justify-content: space-between;
    padding-bottom: 40px;
}
.footer-right{
    width: 300px;
}
.footer-bottom{
    text-align: center;
}
.select-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    padding: 32px 32px 24px 32px;
    width: 100%;
    min-width: 340px;
    max-width: 950px;
    margin-bottom: 16px;
}
.select-group + .select-group {
    margin-top: 32px;
}
.select-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}
.select-title-bar {
    display: inline-block;
    width: 4px;
    height: 22px;
    background: var(--primary);
    border-radius: 2px;
    margin-right: 6px;
}
.select-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 18px;
}
.select-tag {
    height: 60px;
    min-width: 120px;
    padding: 0 18px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1.5px solid #e6e6e6;
    background: #fafbfc;
    color: #222;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: border 0.2s, color 0.2s, background 0.2s;
    box-sizing: border-box;
    line-height: 20px;
    position: relative;
    white-space: nowrap;
}
.select-tag.selected, .select-tag:hover {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: #fff0f2;
    z-index: 1;
}
.select-price {
    color: var(--primary);
    font-weight: 600;
    margin-left: 4px;
    font-size: 1rem;
}
@media (max-width: 900px) {
    .select-card {
        padding: 18px 8px 12px 8px;
        min-width: unset;
        max-width: 100vw;
    }
    .select-tag {
        min-width: 90px;
        font-size: 13px;
        height: 44px;
        padding: 0 8px;
    }
}

@media (max-width: 900px) {
    .flex-row {
        flex-direction: column;
    }
    .right-panel {
        max-width: 100%;
        min-width: unset;
    }
    .tabs-navbar .nav-container {
        padding: 0 8px;
    }
    .tabs-menu a {
        padding: 0 12px;
        font-size: 0.95rem;
    }
}

@media (max-width: 600px) {
    .nav-container {
        padding: 0 8px;
    }
    main {
        padding: 0 4px 32px 4px;
    }
    .left-panel, .right-panel {
        padding: 18px 8px;
    }
    .region-card {
        padding: 12px 10px;
        min-width: 90px;
        font-size: 0.95rem;
    }
    .cart-float {
        right: 8px;
        bottom: 8px;
        width: 98vw;
        max-width: 99vw;
        border-radius: 12px;
    }
    .cart-header, .cart-footer, .cart-list {
        padding-left: 10px;
        padding-right: 10px;
    }
} 